Auto merge of #4125 - alexcrichton:rerun-if-env-changed, r=matklad
authorbors <bors@rust-lang.org>
Thu, 15 Jun 2017 17:52:42 +0000 (17:52 +0000)
committerbors <bors@rust-lang.org>
Thu, 15 Jun 2017 17:52:42 +0000 (17:52 +0000)
commitb4b7ed5bd8759f947c44d34b00b80343575e9fbf
treeafc88054a0985eb45f93dc7048beb7ae77005677
parent0ae95d245b19397cd2649b1976b5fead72538b7b
parentfe8bbb7a544e5bafadfb58b1f1c9132b9952c43f
Auto merge of #4125 - alexcrichton:rerun-if-env-changed, r=matklad

Implement `cargo:rerun-if-env-changed=FOO`

This commit implements a new method of rerunning a build script if an
environment variable changes. Environment variables are one of the primary
methods of giving inputs to a build script today, and this'll help situations
where if you change an env var you don't have to remember to clean out an old
build directory to ensure fresh results.

Closes #2776
src/cargo/ops/cargo_compile.rs
src/cargo/ops/cargo_rustc/context.rs